Eliding totally transparent content from the node tree is
not 100% correct, since filters can make things visible, so
we need to at least preserve the bounds. We can do that by
creating a transparent color node.
#include "gtkstylecontextprivate.h"
#include "gsktransformprivate.h"
+#include "gdk/gdkrgbaprivate.h"
+
#include "gsk/gskrendernodeprivate.h"
#include "gsk/gskroundedrectprivate.h"
}
else if (state->data.opacity.opacity == 0.0)
{
+ GdkRGBA color = GDK_RGBA ("00000000");
+ graphene_rect_t bounds;
+
+ gsk_render_node_get_bounds (node, &bounds);
+ opacity_node = gsk_color_node_new (&color, &bounds);
gsk_render_node_unref (node);
- opacity_node = NULL;
}
else
{